#include "AC2Msg.h"

configuration AC2AppC
{
}
implementation
{
	components AC2P;
	components ActiveMessageC;
	components new AMSenderC(AM_AC2_MSG) as RadioSenderC;
	components new AMReceiverC(AM_AC2_MSG) as RadioReceiverC;
	components new TimerMilliC() as TempTimer;
	components new TimerMilliC() as SerialTimer;
	components LedsC;
	components MainC;
	components new SensirionSht11C() as TempC;

    components SerialActiveMessageC as Serial;

	AC2P.Boot -> MainC;
	AC2P.TempTimer -> TempTimer;
	AC2P.SerialTimer -> SerialTimer;
	AC2P.Leds -> LedsC;
	AC2P.RadioSend -> RadioSenderC;
	AC2P.Receive -> RadioReceiverC;
	AC2P.RadioPacket -> RadioSenderC;
	AC2P.RadioControl -> ActiveMessageC;
	AC2P.Read -> TempC.Temperature;

    AC2P.SerialPacket -> Serial;
    AC2P.SerialSend -> Serial.AMSend[AM_SERIAL_MSG];
    AC2P.SerialControl -> Serial;
}
